<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>药品价格信息修改</title>
    <link href="<%=basePath%>css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
    <script type="text/javascript">
        $(function(){
            $('tbody tr:odd').addClass("trLight");

            $(".select-all").click(function(){
                if($(this).attr("checked")){
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", true);
                    });
                }else{
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", false);
                    });
                }
            });
        });
    </script>
    <style type="text/css">
        body {
            background:#FFF
        }
    </style>
</head>

<body>
<form method="post" action="<%=basePath%>drugsPriceUpdateController" method="post" name="ThisForm">
    <input  type="hidden" id="id" name="drugsid" value="${drugs.drugsid}"/>
    <div id="contentWrap">
        <!--表格控件 -->
        <div id="widget table-widget">
            <div class="pageTitle">药品价格修改</div>
            <div class="pageColumn">
                <div class="pageButton"></div>
                <table>
                    <thead>
                    <th width="">目前药品价格</th>
                    <th width="">
                        <input type="text" id="before" name="beforeprice" value="${drugs.price}"/></th>
                    <th width="">药品新价格</th>
                    <th width="">
                        <input type="text" id="moneys" name="price" value=""/></th>
                    </thead>
                    </thead>
                    <thead>
                    <th colspan="4"><input type="submit" value="确定"/> </th>
                    </thead>
                </table>
            </div>
        </div><!-- #widget -->
    </div>
</form>
</body>
</html>
